import request from '@/utils/request'

// 查询游戏配置列表
export function listConfig(query) {
  return request({
    url: '/game/config/list',
    method: 'get',
    params: query
  })
}

// 查询游戏配置详细
export function getConfig(gameUserDividends) {
  return request({
    url: '/game/config/' + gameUserDividends,
    method: 'get'
  })
}

// 新增游戏配置
export function addConfig(data) {
  return request({
    url: '/game/config',
    method: 'post',
    data: data
  })
}

// 修改游戏配置
export function updateConfig(data) {
  return request({
    url: '/game/config',
    method: 'put',
    data: data
  })
}

// 删除游戏配置
export function delConfig(gameUserDividends) {
  return request({
    url: '/game/config/' + gameUserDividends,
    method: 'delete'
  })
}
